package com.ke.rule.controller;

import com.ke.rule.dto.ContractSignRequest;
import com.ke.rule.dto.ContractSignResponse;
import com.ke.rule.template.IContractSignTemplate;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/in/contract")
public class InContractController {

    @Resource
    private IContractSignTemplate contractSignTemplate;

    @PostMapping("/sign")
    public ContractSignResponse sign(@RequestBody ContractSignRequest request) {
        return contractSignTemplate.sign(request);
    }

}
